import Vue from 'vue';
import Vuex from 'vuex';
import app from './modules/app';
Vue.use(Vuex);

const store = new Vuex.Store({
    state: {
        selectedIdentity:'3301',
        selectedType:'3301',

    },
    mutations: {//同步
        setSelectedIdentity (state, selectedIdentity) {
            state.selectedIdentity = selectedIdentity;
        }, 
        setSelectedType (state, selectedType) {
            state.selectedType = selectedType;
        }, 
    },
    actions: {//异步
    },
    modules: {
        app
    }
});

export default store;
